import request from '@/utils/request'

/**
 * 条件查询订单信息
 * @returns 
 */
export function listOrders(form) {
    return request({
        url: '/admin/order',
        method: 'post',
        data: {
            pageNum: form.pageNum,
            limit: form.limit,
            status: form.status,
            sendStatus: form.sendStatus,
            orderId: form.orderId
        }
    })
}
/**
 *   修改订单状态
 * @param {*} orderId 
 * @returns 
 */
export function updateOrderStatus(orderId){
    return request({
        url:'/admin/order/'+orderId,
        method:'put'
    })
}